package com.person.web.action;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;


import com.opensymphony.xwork2.Preparable;
import com.person.base.service.BaseUserService;
import com.person.commons.security.DES;
import com.person.commons.struts2.BaseAction;
import com.person.commons.utils.Constants;
import com.person.commons.utils.FlipPageInfo;
import com.person.dic.model.Dic;
import com.person.dic.model.DicPara;
import com.person.dic.service.DicParaService;
import com.person.download.service.DownloadService;
import com.person.hold.model.Hold;
import com.person.hold.service.HoldService;
import com.person.link.model.Link;
import com.person.link.service.LinkService;
import com.person.news.model.News;
import com.person.news.model.NewsRevert;
import com.person.news.service.NewsRevertService;
import com.person.news.service.NewsService;
import com.person.product.model.Product;
import com.person.product.service.ProductService;
import com.person.sys.model.SysWeb;
import com.person.sys.service.SysWebService;
import com.person.title.model.Title;
import com.person.title.model.TitleFunc;
import com.person.title.model.TitleSub;
import com.person.title.service.TitleFuncService;
import com.person.title.service.TitleService;
import com.person.title.service.TitleSubService;
import com.person.web.model.WebInfo;

@SuppressWarnings("unchecked")
public class FrontAction extends BaseAction implements Preparable{

	private TitleService titleService ; 
	private TitleSubService titleSubService ;		
	private TitleFuncService titleFuncService ;	
	private SysWebService sysWebService ;
	private BaseUserService baseUserService ;
	private NewsRevertService newsRevertService;
	private DicParaService dicParaService;
	
	private LinkService linkService ;        		//链接
	private DownloadService downloadService ;		//下载
	private ProductService productService ;			//产品
	private NewsService newsService ;				//新闻信息
	private HoldService holdService ;				//留言
	
	private List <Title> titles ;
	private List <TitleSub> titleSubs  ;
	private List <TitleSub> nextSubs ;			//三级栏目
	private TitleSub nextSub ;
	private Title title ;
	private TitleSub titleSub ;
	private WebInfo webInfo ;
	private List <WebInfo> webInfos ;
	
	private SysWeb sysWeb ;						//网站页面设置
	private String titleId ;

	private FlipPageInfo flipPageInfo ;			//分页信息
	private String classType ;
	private List <Link> linkList ;
	private News news ;
	private Product product ;
	
	private Hold hold ;
	private List<Dic> dicsHold;					//留言心情字典
	
	private List<Dic> dicsPolity;				//政治面貌	
	private List<Dic> dicsColl;					//学历
	private List<Dic> dicsArea;					//籍贯
	private List<Dic> dicsNation;				//民族
	
	private List<TitleSub> titleSubSameFuncId;
	private List<NewsRevert> revertList;
	private NewsRevert newsRevert;	
	
	//前台会员注册
	private String loginName;
	private String password;
	private int LOGIN_SUCCESS;
	private String roleId;
	private String[] billCodes;
	// 字典参数
	private DicPara dicPara;
	private List<DicPara> dicParaList;
	private String keyWord;
	private ArrayList webInfos1;
	private List<Dic> dicList;
	private FlipPageInfo lowPriceFpi;
	private Title title1;
	private List<Dic> dicPhoneScope;
	private String password2;
	private String loginName2;
	private List<Dic> dicArea;
	private String insiderEmail;
	private int LOGIN_FLAG;
	private String password_odd;
	private String password_new1;
	private List<News> newsList1;
	private List<News> newsList2;
	private List<News> newsList3;
	private String currentDate;
	/**
	 * web前台首页 
	 * @return
	 */
	public String index () {
		
		titles = this.titleService.titleList() ;		//所有一级栏目
		
		if (titles.size() !=0) {
			title = titles.get(0) ;
			titleSubs = this.titleService.juniorTitleList(title.getTitleId()) ;		//第一个一级栏目所有的二级栏目
		}
		
		int size = titleSubs.size() ;
		webInfos = new ArrayList () ;
		
		if (size > 0) {
			for (int i=0; i<size; i++) {
				this.createWebInfos((TitleSub) titleSubs.get(i)) ;				
			}			
		}		
		return "index" ;
		
	}
	
	
	
	/**
	 * web前台一级栏目页 
	 * @return
	 */	
	public String content () {
		
		if (flipPageInfo==null) {
			flipPageInfo = new FlipPageInfo () ; 
		}		
		
		titles = this.titleService.titleList() ;		//所有一级栏目
		title =this.titleService.findSysTitleId(titleId) ;
		titleSubs = this.titleService.juniorTitleList(titleId) ;		//本栏目所有的二级栏目
		
		int size = titleSubs.size() ;		
		
		if (size>0) {
			titleSub = (TitleSub) titleSubs.get(0) ;
			
			nextSubs = this.titleSubService.juniorTitleSubList(titleSub.getSubId()) ;   //三级栏目
			if (nextSubs.size()>0) {
				nextSub = (TitleSub) nextSubs.get(0) ;
				this.createWebInfo(nextSub) ;
			} else {
				this.createWebInfo(titleSub) ;
			}	
			
		}		
		return "detail" ;
	} 	
	
	/**
	 * web前台子栏目点击更多后进入相应的模块
	 * @return
	 */		
	public String moreInIndex () {
		
		if (flipPageInfo==null) {
			flipPageInfo = new FlipPageInfo () ; 
		}	
		
		titles = this.titleService.titleList() ;		//所有一级栏目		
		titleSub = this.titleSubService.findTitleSubById(titleSub.getSubId()) ;	
		
		title =this.titleService.findSysTitleId(titleId) ;
		titleSubs = this.titleService.juniorTitleList(titleId) ;		//本栏目所有的二级栏目		
		
		dealTitleFromIndex();
		
		nextSubs = this.titleSubService.juniorTitleSubList(titleSub.getSubId()) ;   //三级栏目
		if (nextSubs.size()>0) {
			nextSub = (TitleSub) nextSubs.get(0) ; 
			this.createWebInfo(nextSub) ;
		} else {
			this.createWebInfo(titleSub) ;
			
		}		
		return "detail" ;
	} 
	
	
	/**
	 * web前台子栏目页 
	 * @return
	 */		
	public String subContent () {
		
		if (flipPageInfo==null) {
			flipPageInfo = new FlipPageInfo () ; 
		}	
		
		titles = this.titleService.titleList() ;		//所有一级栏目		
		titleSub = this.titleSubService.findTitleSubById(titleSub.getSubId()) ;	
		title =this.titleService.findSysTitleId(titleId) ;
		titleSubs = this.titleService.juniorTitleList(titleId) ;		//本栏目所有的二级栏目		
		nextSubs = this.titleSubService.juniorTitleSubList(titleSub.getSubId()) ;   //三级栏目
		
		dealTitleFromIndex();
		
		if (nextSubs.size()>0) {
			nextSub = (TitleSub) nextSubs.get(0) ; 
			this.createWebInfo(nextSub) ;
		} else {
			this.createWebInfo(titleSub) ;
		}					
		return "detail" ;
	} 
	
	/**首页新闻阅读
	 * @return
	 */
	public String newsReadInIndex () {
		
		
		titles = this.titleService.titleList() ;		//所有一级栏目		
		titleSub = this.titleSubService.findTitleSubById(titleSub.getSubId()) ;	
		title =this.titleService.findSysTitleId(title.getTitleId()) ;
		titleSubs = this.titleService.juniorTitleList(title.getTitleId()) ;		//本栏目所有的二级栏目	
		titleId = title.getTitleId() ;
		
		dealTitleFromIndex();
		news = this.newsService.findNewsById(news.getNewsId()) ;
		//revertList = newsRevertService.revertListByNewsId(news.getNewsId());//根据新闻ID查找相应的评论
		if (news.getNewsClick() != null) { 					//修改新闻点击次数
			news.setNewsClick(news.getNewsClick() + 1);}	
		else{ 		 
			news.setNewsClick(1);
		}
		this.newsService.modifyNews(news) ;
		
		return "newsRead" ;
	}

	
	private void dealTitleFromIndex() {
		//根据funcId查找同功能的栏目
		titleSubSameFuncId=titleSubService.findTitleSubByfuncId(titleSub.getFuncId());
		//如果栏目多于两个取非首页的栏目
		if(titleSubSameFuncId.size()>1){
			for(int i=0;i<titleSubSameFuncId.size();i++){
				String titleCode = titleSubSameFuncId.get(i).getTitleCodeGroup().substring(0, 2);
				if(titleCode.compareTo("01") > 0 && titleCode.compareTo("10") < 0){
					titleSub=titleSubSameFuncId.get(i);
				}
			}
			title=titleService.findTitleByCode(titleSub.getTitleCodeGroup().substring(0, 2));
			titleSubs=titleSubService.findTitleSubByTitleCodeGroup(title.getTitleCode());
		}
		
	}



	/**新闻阅读
	 * @return
	 */
	public String newsRead () {
		
		
		
		titles = this.titleService.titleList() ;		//所有一级栏目		
		titleSub = this.titleSubService.findTitleSubById(titleSub.getSubId()) ;	
		title =this.titleService.findSysTitleId(title.getTitleId()) ;
		titleSubs = this.titleService.juniorTitleList(title.getTitleId()) ;		//本栏目所有的二级栏目	
		titleId = title.getTitleId() ;

		news = this.newsService.findNewsById(news.getNewsId()) ;
		if (news.getNewsClick() != null) { 					//修改新闻点击次数
			news.setNewsClick(news.getNewsClick() + 1);}	
		else{ 		 
			news.setNewsClick(1);
		}
		this.newsService.modifyNews(news) ;
		
		return "newsRead" ;
	}
	
	/**
	 * 订单
	 * @return
	 */
	public String productOrderPre () {
		
		
		
		titles = this.titleService.titleList() ;		//所有一级栏目		
		titleSub = this.titleSubService.findTitleSubById(titleSub.getSubId()) ;	
		title =this.titleService.findSysTitleId(title.getTitleId()) ;
		titleSubs = this.titleService.juniorTitleList(title.getTitleId()) ;		//本栏目所有的二级栏目	
		
		product = this.productService.findProductById(product.getProductId()) ;
		
		return "order" ;
	}
	/**
	 * 产品详细信息
	 * @return
	 */
	public String productInfoInIndex () {
		
		
		//titles = this.titleService.titleList() ;		//所有一级栏目		
		titleSub = this.titleSubService.findTitleSubById(titleSub.getSubId()) ;	
		title =this.titleService.findSysTitleId(title.getTitleId()) ;
		//titleSubs = this.titleService.juniorTitleList(title.getTitleId()) ;		//本栏目所有的二级栏目	
		titleId = title.getTitleId() ;
		
		dealTitleFromIndex();
		
		product = this.productService.findProductById(product.getProductId()) ;
		
		product.setProductClick(product.getProductClick()+1) ;
		
		this.productService.updateProduct(product) ;
		
		return "product" ;
	}	
	/**
	 * 产品详细信息
	 * @return
	 */
	public String productInfo () {
		
				
		titles = this.titleService.titleList() ;		//所有一级栏目		
		titleSub = this.titleSubService.findTitleSubById(titleSub.getSubId()) ;	
		title =this.titleService.findSysTitleId(title.getTitleId()) ;
		titleSubs = this.titleService.juniorTitleList(title.getTitleId()) ;		//本栏目所有的二级栏目	
		titleId = title.getTitleId() ;
		
		product = this.productService.findProductById(product.getProductId()) ;
		
		product.setProductClick(product.getProductClick()+1) ;
		
		this.productService.updateProduct(product) ;
		
		return "product" ;
	}	
	
	/**
	 * 设置传到网站首页面信息
	 * @param ts
	 * @param ws
	 */
	public void createWebInfos (TitleSub ts) {

		TitleFunc tf = null ;
		String funcId = "" ;
		String classCodeGroup = "0" ;
		String subName = "" ;
		String subNameEn = "" ;	
		String subId = "" ;
		List temList = null ;
		
		funcId = ts.getFuncId() ;
		if (funcId!=null&&!funcId.equals("")) {
			tf = this.titleFuncService.findTitleFuncById(ts.getFuncId()) ;
			if(tf!=null){
				classCodeGroup = tf.getClassCodeGroup().substring(0, 2) ;
			}
			subName = ts.getSubName() ;
			subNameEn = ts.getSubNameEn() ;			
			subId = ts.getSubId() ;
			
			int intValue = Integer.parseInt(classCodeGroup) ;
							
			switch (intValue) {
				
				case 10 : {			//链接
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.linkService.findLinkByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos.add(webInfo1) ;
					break ;
				}
				case 20 : {			//下载
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.downloadService.findDownloadByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos.add(webInfo1) ;
					break ;
				}
				case 30 : {			//产品
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.productService.findProductByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos.add(webInfo1) ;
					break ;
				}
				case 50 : {			//新闻信息
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.newsService.findNewsByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos.add(webInfo1) ;						
					break ;
				}
				case 60 : {			//留言
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.holdService.findHoldByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos.add(webInfo1) ;
					break ;
				}
				default : {
					break ;
				}				
			}
		}
		
	}
	/**
	 * 设置传到网站首页面信息leo
	 * @param ts
	 * @param ws
	 */
	public void createWebInfos1 (TitleSub ts) {

		TitleFunc tf = null ;
		String funcId = "" ;
		String classCodeGroup = "0" ;
		String subName = "" ;
		String subNameEn = "" ;	
		String subId = "" ;
		List temList = null ;
		
		funcId = ts.getFuncId() ;
		if (funcId!=null&&!funcId.equals("")) {
			tf = this.titleFuncService.findTitleFuncById(ts.getFuncId()) ;
			if(tf!=null){
				classCodeGroup = tf.getClassCodeGroup().substring(0, 2) ;
			}
			subName = ts.getSubName() ;
			subNameEn = ts.getSubNameEn() ;			
			subId = ts.getSubId() ;
			
			int intValue = Integer.parseInt(classCodeGroup) ;
							
			switch (intValue) {
				
				case 10 : {			//链接
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.linkService.findLinkByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title1.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos1.add(webInfo1) ;
					break ;
				}
				case 20 : {			//下载
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.downloadService.findDownloadByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title1.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos1.add(webInfo1) ;
					break ;
				}
				case 30 : {			//产品
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.productService.findProductByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title1.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos1.add(webInfo1) ;
					break ;
				}
				case 50 : {			//新闻信息
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.newsService.findNewsByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title1.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos1.add(webInfo1) ;						
					break ;
				}
				case 60 : {			//留言
					WebInfo webInfo1 = new WebInfo () ;
					temList = this.holdService.findHoldByFuncId(funcId) ;
					webInfo1.setSubName(subName) ;
					webInfo1.setSubNameEn(subNameEn) ;
					webInfo1.setInfos(temList) ;
					webInfo1.setType(classCodeGroup) ;
					webInfo1.setTitleId(title1.getTitleId()) ;
					webInfo1.setSubId(subId) ;
					if (temList.size() == 1) {
						webInfo1.setFlag(true) ;
					} else {
						webInfo1.setFlag(false) ;
					}
					webInfos1.add(webInfo1) ;
					break ;
				}
			}
		}
		
	}
	
	/**
	 * 设置传到网站首页面信息
	 * @param ts
	 * @param ws
	 */
	public void createWebInfo (TitleSub ts) {

		TitleFunc tf = null ;
		String funcId = "" ;
		String classCodeGroup = "" ;
		String subName = "" ;
		String subNameEn = "" ;		
		List temList = null ;		
		funcId = ts.getFuncId() ;
		
		if (funcId!=null&&!funcId.equals("")) {
			tf = this.titleFuncService.findTitleFuncById(ts.getFuncId()) ;
			//后台删除功能管理中的节点，但是没有删除对应的栏目时报错。需要判断过滤
			if(tf!=null){
				
				classCodeGroup = tf.getClassCodeGroup().substring(0, 2) ;
				subName = ts.getSubName() ;
				this.setClassType(classCodeGroup) ;
				
				int intValue = Integer.parseInt(classCodeGroup) ;
								
				switch (intValue) {
					
					case 10 : {			//链接
											
						linkList = this.linkService.findLinkByFuncId(funcId) ;
						break ;
					}
					case 20 : {			//下载
						
						flipPageInfo.setSize(15) ;
						flipPageInfo = this.downloadService.findDownloadByInfo(funcId, flipPageInfo) ;				
						break ;
					}
					case 30 : {			//产品
						
						flipPageInfo.setSize(12) ;					
						flipPageInfo = this.productService.findProductPageInfoByFuncId(funcId, flipPageInfo) ;
						break ;
					}
					case 50 : {			//新闻信息
						
						flipPageInfo.setSize(15) ;
						flipPageInfo = this.newsService.findNewsByFuncId(funcId, flipPageInfo) ;								
						break ;
					}
					case 60 : {			//留言
					
						currentDate = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
						break ;
					}
					default : {
						break ;
					}				
				}
			}else{
				flipPageInfo.setSize(5) ;
				flipPageInfo = this.holdService.findAllHoldList(flipPageInfo,"1");
			}
		}else{
			flipPageInfo.setSize(5) ;
			flipPageInfo = this.holdService.findAllHoldList(flipPageInfo,"1");
		}
		
	}
	//弹出窗口
	public String pop(){
		
		sysWeb = this.sysWebService.findSysWeb() ;			
		return "popWindow";
	}
	/**
	 * 在线留言
	 * @return
	 */
	public String hold () {	
		
		titles = this.titleService.titleList() ;		//所有一级栏目		
		titleSub = this.titleSubService.findTitleSubById(titleSub.getSubId()) ;	
		title =this.titleService.findSysTitleId(title.getTitleId()) ;
		titleSubs = this.titleService.juniorTitleList(title.getTitleId()) ;		//本栏目所有的二级栏目	
		titleId = title.getTitleId() ;
		
		hold.setHoldDate(new Date()) ;
		
		//获得访问者IP
		String ip = request.getHeader("X-Forwarded-For");
		if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
			ip = request.getHeader("Proxy-Client-IP");
		}
		if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
			ip = request.getHeader("WL-Proxy-Client-IP");
		}
		if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
			ip = request.getHeader("HTTP_CLIENT_IP");
		}
		if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
			ip = request.getHeader("HTTP_X_FORWARDED_FOR");
		}
		if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
			ip = request.getRemoteAddr();
		}
		hold.setHoldIp(ip) ;
		hold.setHoldFlag("0") ;
		this.holdService.createHold(hold) ;
		
		
		info = getText ("index.hold.create.success") ;
		
		return "msg" ;
	}

	
	public void prepare() throws Exception {
		
		sysWeb = this.sysWebService.findSysWeb() ;	
//		dicParaList= dicParaService.seachAll();
//		for(int i=0;i<dicParaList.size();i++){
//			if(dicParaList.get(i).getParaNo().equals("01")){
//				dicPara=dicParaList.get(i);
//			}
//		}
		titles = this.titleService.titleList() ;		//所有一级栏目
		if(titles!=null){
			title1=titles.get(titles.size()-1);
			titleSubs = this.titleService.juniorTitleList(title1.getTitleId()) ;		//第一个一级栏目所有的二级栏目
			int size=0;
			if(titleSubs!=null){
				size = titleSubs.size() ;
			}
			
			webInfos1 = new ArrayList () ;//底下栏目管理
			
			if (size > 0) {
				for (int i=0; i<size; i++) {
					this.createWebInfos1((TitleSub) titleSubs.get(i)) ;				
				}			
			}		
		}
	}
	public TitleService getTitleService() {
		return titleService;
	}

	public void setTitleService(TitleService titleService) {
		this.titleService = titleService;
	}

	public TitleSubService getTitleSubService() {
		return titleSubService;
	}

	public void setTitleSubService(TitleSubService titleSubService) {
		this.titleSubService = titleSubService;
	}

	public List<Title> getTitles() {
		return titles;
	}
	public void setTitles(List<Title> titles) {
		this.titles = titles;
	}
	public List<TitleSub> getTitleSubs() {
		return titleSubs;
	}
	public void setTitleSubs(List<TitleSub> titleSubs) {
		this.titleSubs = titleSubs;
	}
	public Title getTitle() {
		return title;
	}
	public void setTitle(Title title) {
		this.title = title;
	}
	public TitleFuncService getTitleFuncService() {
		return titleFuncService;
	}
	public void setTitleFuncService(TitleFuncService titleFuncService) {
		this.titleFuncService = titleFuncService;
	}
	public LinkService getLinkService() {
		return linkService;
	}

	public void setLinkService(LinkService linkService) {
		this.linkService = linkService;
	}

	public ProductService getProductService() {
		return productService;
	}

	public void setProductService(ProductService productService) {
		this.productService = productService;
	}


	public NewsService getNewsService() {
		return newsService;
	}

	public void setNewsService(NewsService newsService) {
		this.newsService = newsService;
	}

	public HoldService getHoldService() {
		return holdService;
	}

	public void setHoldService(HoldService holdService) {
		this.holdService = holdService;
	}


	public WebInfo getWebInfo() {
		return webInfo;
	}

	public void setWebInfo(WebInfo webInfo) {
		this.webInfo = webInfo;
	}

	public List<WebInfo> getWebInfos() {
		return webInfos;
	}

	public void setWebInfos(List<WebInfo> webInfos) {
		this.webInfos = webInfos;
	}

	public SysWebService getSysWebService() {
		return sysWebService;
	}

	public void setSysWebService(SysWebService sysWebService) {
		this.sysWebService = sysWebService;
	}

	public SysWeb getSysWeb() {
		return sysWeb;
	}

	public void setSysWeb(SysWeb sysWeb) {
		this.sysWeb = sysWeb;
	}

	public String getTitleId() {
		return titleId;
	}

	public void setTitleId(String titleId) {
		this.titleId = titleId;
	}

	public TitleSub getTitleSub() {
		return titleSub;
	}

	public void setTitleSub(TitleSub titleSub) {
		this.titleSub = titleSub;
	}

	public FlipPageInfo getFlipPageInfo() {
		return flipPageInfo;
	}

	public void setFlipPageInfo(FlipPageInfo flipPageInfo) {
		this.flipPageInfo = flipPageInfo;
	}

	public String getClassType() {
		return classType;
	}

	public void setClassType(String classType) {
		this.classType = classType;
	}


	public DownloadService getDownloadService() {
		return downloadService;
	}

	public void setDownloadService(DownloadService downloadService) {
		this.downloadService = downloadService;
	}

	public List<Link> getLinkList() {
		return linkList;
	}

	public void setLinkList(List<Link> linkList) {
		this.linkList = linkList;
	}

	public News getNews() {
		return news;
	}

	public void setNews(News news) {
		this.news = news;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Hold getHold() {
		return hold;
	}

	public void setHold(Hold hold) {
		this.hold = hold;
	}

	public List<Dic> getDicsHold() {
		return dicsHold;
	}

	public void setDicsHold(List<Dic> dicsHold) {
		this.dicsHold = dicsHold;
	}

	public BaseUserService getBaseUserService() {
		return baseUserService;
	}

	public void setBaseUserService(BaseUserService baseUserService) {
		this.baseUserService = baseUserService;
	}


	public List<Dic> getDicsPolity() {
		return dicsPolity;
	}


	public void setDicsPolity(List<Dic> dicsPolity) {
		this.dicsPolity = dicsPolity;
	}


	public List<Dic> getDicsColl() {
		return dicsColl;
	}


	public void setDicsColl(List<Dic> dicsColl) {
		this.dicsColl = dicsColl;
	}


	public List<Dic> getDicsArea() {
		return dicsArea;
	}


	public void setDicsArea(List<Dic> dicsArea) {
		this.dicsArea = dicsArea;
	}


	public List<Dic> getDicsNation() {
		return dicsNation;
	}


	public void setDicsNation(List<Dic> dicsNation) {
		this.dicsNation = dicsNation;
	}


	public List<TitleSub> getNextSubs() {
		return nextSubs;
	}


	public void setNextSubs(List<TitleSub> nextSubs) {
		this.nextSubs = nextSubs;
	}


	public TitleSub getNextSub() {
		return nextSub;
	}


	public void setNextSub(TitleSub nextSub) {
		this.nextSub = nextSub;
	}


	public List<TitleSub> getTitleSubSameFuncId() {
		return titleSubSameFuncId;
	}
	public void setTitleSubSameFuncId(List<TitleSub> titleSubSameFuncId) {
		this.titleSubSameFuncId = titleSubSameFuncId;
	}
	public void setNewsRevertService(NewsRevertService newsRevertService) {
		this.newsRevertService = newsRevertService;
	}
	public List<NewsRevert> getRevertList() {
		return revertList;
	}
	public void setRevertList(List<NewsRevert> revertList) {
		this.revertList = revertList;
	}
	public NewsRevert getNewsRevert() {
		return newsRevert;
	}
	public void setNewsRevert(NewsRevert newsRevert) {
		this.newsRevert = newsRevert;
	}
	public NewsRevertService getNewsRevertService() {
		return newsRevertService;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getLOGIN_SUCCESS() {
		return LOGIN_SUCCESS;
	}
	public void setLOGIN_SUCCESS(int login_success) {
		LOGIN_SUCCESS = login_success;
	}
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	public String[] getBillCodes() {
		return billCodes;
	}
	public void setBillCodes(String[] billCodes) {
		this.billCodes = billCodes;
	}
	public DicParaService getDicParaService() {
		return dicParaService;
	}
	public void setDicParaService(DicParaService dicParaService) {
		this.dicParaService = dicParaService;
	}
	public DicPara getDicPara() {
		return dicPara;
	}
	public void setDicPara(DicPara dicPara) {
		this.dicPara = dicPara;
	}
	public List<DicPara> getDicParaList() {
		return dicParaList;
	}
	public void setDicParaList(List<DicPara> dicParaList) {
		this.dicParaList = dicParaList;
	}
	public String getKeyWord() {
		return keyWord;
	}
	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}
	public ArrayList getWebInfos1() {
		return webInfos1;
	}
	public void setWebInfos1(ArrayList webInfos1) {
		this.webInfos1 = webInfos1;
	}
	public List<Dic> getDicList() {
		return dicList;
	}



	public void setDicList(List<Dic> dicList) {
		this.dicList = dicList;
	}



	public FlipPageInfo getLowPriceFpi() {
		return lowPriceFpi;
	}



	public void setLowPriceFpi(FlipPageInfo lowPriceFpi) {
		this.lowPriceFpi = lowPriceFpi;
	}



	public Title getTitle1() {
		return title1;
	}



	public void setTitle1(Title title1) {
		this.title1 = title1;
	}



	public List<Dic> getDicPhoneScope() {
		return dicPhoneScope;
	}



	public void setDicPhoneScope(List<Dic> dicPhoneScope) {
		this.dicPhoneScope = dicPhoneScope;
	}




	public String getPassword2() {
		return password2;
	}



	public void setPassword2(String password2) {
		this.password2 = password2;
	}



	public String getLoginName2() {
		return loginName2;
	}



	public void setLoginName2(String loginName2) {
		this.loginName2 = loginName2;
	}


	public List<Dic> getDicArea() {
		return dicArea;
	}
	public void setDicArea(List<Dic> dicArea) {
		this.dicArea = dicArea;
	}
	public String getInsiderEmail() {
		return insiderEmail;
	}
	public void setInsiderEmail(String insiderEmail) {
		this.insiderEmail = insiderEmail;
	}
	public int getLOGIN_FLAG() {
		return LOGIN_FLAG;
	}
	public void setLOGIN_FLAG(int login_flag) {
		LOGIN_FLAG = login_flag;
	}



	public String getPassword_odd() {
		return password_odd;
	}



	public void setPassword_odd(String password_odd) {
		this.password_odd = password_odd;
	}



	public String getPassword_new1() {
		return password_new1;
	}



	public void setPassword_new1(String password_new1) {
		this.password_new1 = password_new1;
	}



	public List<News> getNewsList1() {
		return newsList1;
	}



	public void setNewsList1(List<News> newsList1) {
		this.newsList1 = newsList1;
	}
	public List<News> getNewsList2() {
		return newsList2;
	}
	public void setNewsList2(List<News> newsList2) {
		this.newsList2 = newsList2;
	}
	public List<News> getNewsList3() {
		return newsList3;
	}
	public void setNewsList3(List<News> newsList3) {
		this.newsList3 = newsList3;
	}
	public String getCurrentDate() {
		return currentDate;
	}
	public void setCurrentDate(String currentDate) {
		this.currentDate = currentDate;
	}
	
}
